#coding = utf-8
import os,sys
# import commands
# # result = os.system("ps aux | grep manage.py")
# s = commands.getoutput("ps aux | grep manage.py")
# stat = s.split()
# print stat
# if stat[10]+stat[11] == "pythonmanage.py":
#     pid = stat[1]
#     run_states = 1
# else:
#     run_states = 0
# print stat[1],stat[10]+stat[11]
sys.path.append('/home/work/Interface_auto/master/manage')
path = os.getcwd()
os.chdir('/home/work/Interface_auto/master/manage')
os.system("nohup python manage.py &")
os.chdir(path)
print os.system('ls')